#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	double F, C,ret;
	scanf("%lf",&F);
	C = (5.0 / 9.0) * (F - 32);
	printf("%.3lf", C);
	return 0;
}